<!--ckfinder upload-->
<script type="text/javascript">
   function BrowseServer1()                        {
         var finder = new CKFinder();
         finder.basePath = '../';    // The path for the installation of CKFinder (default = "/ckfinder/").
         finder.selectActionFunction = SetFileField1;
         finder.popup();                                
         // It can also be done in a single line, calling the "static"
         // popup( basePath, width, height, selectFunction ) function:
         // CKFinder.popup( '../', null, null, SetFileField ) ;
         //
         // The "popup" function can also accept an object as the only argument.
         // CKFinder.popup( { basePath : '../', selectActionFunction : SetFileField } ) ;
     }
     
     // This is a sample function which is called when a file is selected in CKFinder.
     function SetFileField1( fileUrl )
     {
         document.getElementById( 'xFilePath1' ).value = fileUrl;
     }
     
         
</script>
<!--ckfinder-->  
<script>
   $(document).ready(function(){
       $('.details-tabs:not(:first)').hide();
       $('.tab-navi li').click(function(){
           $('.tab-navi li').removeClass('active-tabs');
           $(this).addClass('active-tabs');
           $('.details-tabs').hide();
           var tabSactive=$(this).find('a').attr('href');
           $(tabSactive).show();
           return false;
       });
   });
</script>
<!-- sua bai viet-->
<?php echo validation_errors(); ?>
<form method="POST" action="<?php echo base_url().'admin/xuly/index_setting/list/'.$this->uri->segment(5);?>">
   <div class="box_noidung">
      <table class="form">
         <tr>
            <td><font color=red>*Số comment hiển thị </font></td>
            <td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->number_comment_shows;};?>" name="number_comment_shows"/></td>
         </tr>
         <tr>
            <td>Danh mục hiển thị trang chủ</td>
            <td><input type="text" size="40" name="cat_index" value="<?php if(!empty($data)){echo $data->cat_index;}?>"/> <br /> <em>Nhập id danh mục ngăn cách nhau bằng dấu phẩy </em></td>
         </tr>
         <tr>
            <td>Số Slideshow hiển thị</td>
            <td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->number_slideshows;};?>" name="number_slideshows"/></td>
         </tr>
         <tr>
            <td>Số bài viết nổi bật</td>
            <td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->number_breackshows;};?>" name="number_breackshows"/></td>
         </tr>
         <tr>
            <td>Số câu hỏi hiển thị</td>
            <td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->number_faq_shows;};?>" name="number_faq_shows"/></td>
         </tr>
         <tr>
            <td style="text-align: center;" colspan="2"><input class="guidulieu" type="submit" value="Lưu"/></td>
         </tr>
      </table>
   </div>
</form>
<script type="text/javascript">
   if ( typeof CKEDITOR == 'undefined' )
    {
        document.write("khong "
             ) ;
    }
    else
    {
        var editor = CKEDITOR.replace( 'soanthao' );  
        var editor1 = CKEDITOR.replace( 'soanthao1' ); 
        var editor2 = CKEDITOR.replace( 'soanthao2' ); 
            
        CKFinder.setupCKEditor( editor, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;
        CKFinder.setupCKEditor( editor1, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;
        CKFinder.setupCKEditor( editor2, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;  
                
    }
</script>
<!--end sua bai viet-->